﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace SOM.Model
{
    class DnaParser
    {
        public string dna_sequence;     //sequence of nukleotides from source file
        public int lengthOfSeq;       // length of sequence of nukleotides
        public DnaParser(String DnaFile)
        {
            StreamReader sr = new StreamReader(DnaFile);
            StringBuilder sb = new StringBuilder();
            String line;
            // Read and display lines from the file until the end of 
            // the file is reached.
            while ((line = sr.ReadLine()) != null)
            {
                sb.AppendLine(line);
            }
            dna_sequence = sb.ToString();
            lengthOfSeq = dna_sequence.Length;
        }


    }
}
